projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49ae68c
)
gtkpopovermenu: Conditionally chain up in gtk_popover_menu_add()
author
Ernestas Kulik
<ernestask@gnome.org>
Mon, 23 Jul 2018 10:01:01 +0000
(13:01 +0300)
committer
Ernestas Kulik
<ernestask@gnome.org>
Mon, 23 Jul 2018 10:01:01 +0000
(13:01 +0300)
Otherwise the stack gets parented to the wrong widget and the contents
are never drawn.
gtk/gtkpopovermenu.c
patch
|
blob
|
history
diff --git
a/gtk/gtkpopovermenu.c
b/gtk/gtkpopovermenu.c
index 3ee3639bcd722a67bc4047e87573a14e04c87763..9f6f5564c500968ccf865d00a67cc240908955e6 100644
(file)
--- a/
gtk/gtkpopovermenu.c
+++ b/
gtk/gtkpopovermenu.c
@@
-171,8
+171,7
@@
gtk_popover_menu_add (GtkContainer *container,
if (stack == NULL)
{
- gtk_widget_set_parent (child, GTK_WIDGET (container));
- _gtk_bin_set_child (GTK_BIN (container), child);
+ GTK_CONTAINER_CLASS (gtk_popover_menu_parent_class)->add (container, child);
}
else
{